Skip to content

fix(macos): reset thinking anchor on multi-wave runs, flatten padding, fix Date() consistency#25936

Merged
asharma53 merged 1 commit into
mainfrom
swarm/7344/task-3
Apr 15, 2026
Merged

fix(macos): reset thinking anchor on multi-wave runs, flatten padding, fix Date() consistency#25936
asharma53 merged 1 commit into
mainfrom
swarm/7344/task-3

Conversation

@asharma53

@asharma53 asharma53 commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reset thinkingAfterToolsStartDate/EndDate when tools resume (.toolRunning/.streamingCode) so multi-wave runs don't inflate thinking duration
  • Combine consecutive .padding() modifiers in ThinkingStepRow into a single call per macOS AGENTS.md rules (perf hazard in LazyVStack)
  • Capture single let now = Date() in handlePhaseChange completion path to avoid timestamp drift between displayed and persisted thinking duration

Follow-up to #25884.

Test plan

  • Verify multi-wave tool runs (tools → think → more tools → think → complete) show correct thinking duration for the final wave only
  • Verify ThinkingStepRow padding appears visually identical (combined values match previous stacked paddings)
  • Verify completed progress card duration matches sum of tool steps + thinking row

🤖 Generated with Claude Code


Open with Devin

…, fix Date() consistency

Follow-up to #25884. Three fixes:
1. Reset thinkingAfterToolsStartDate/EndDate when tools resume so multi-wave
   runs don't inflate thinking duration.
2. Combine consecutive .padding() modifiers in ThinkingStepRow per macOS
   AGENTS.md rules.
3. Capture single Date() in handlePhaseChange completion path to avoid
   timestamp drift between displayed and persisted thinking duration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@asharma53 asharma53 self-assigned this Apr 15, 2026
@asharma53 asharma53 merged commit 050a4ec into main Apr 15, 2026
6 checks passed
@asharma53 asharma53 deleted the swarm/7344/task-3 branch April 15, 2026 22:30

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 76391b7c6f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@asharma53

Copy link
Copy Markdown
Contributor Author

Addressed in #25963

@asharma53

Copy link
Copy Markdown
Contributor Author

Addressed in #25968

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant